/*
 * Copyright @ 2024 weili23
 * com.example.mythread.a04threadcase 9:23
 * All right reserved.
 */

package com.example.mythread.a04threadmethod;

/**
 * @desc:
 * @author: weili23
 * @createTime: 2024/10/17 9:23
 * @version: v1.0
 */
public class ThreadDemo {
    /*
    * 三个窗口去卖100张票，
     */
    public static void main(String[] args){
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();
        MyThread t3 = new MyThread();
        t1.setName("线程1");
        t2.setName("线程2");
        t3.setName("线程3");
        t1.start();
        t2.start();
        t3.start();
    }
}
